package com.it.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.it.domain.BlogEntity;

import com.it.util.PageUtils;
import com.it.vo.BlogQueryVo;

import java.util.List;
import java.util.Map;

/**
 * @author : code1997
 * @date : 2021/9/9 22:46
 */
public interface BlogService extends IService<BlogEntity> {

    BlogEntity getBolg(Long id);

    PageUtils listBlog(Map<String, Object> params, BlogQueryVo blog);

    PageUtils listBlog(Map<String, Object> params);

    PageUtils listBlogByTagId(Map<String, Object> params);

    PageUtils listBlogByQuery(Map<String, Object> params);

    List<BlogEntity> listRecommedBlogTop(Integer size);

    BlogEntity saveBlog(BlogEntity blog);

    BlogEntity updateBlog(Long id, BlogEntity blog);

    void deleteBlog(Long id);

    BlogEntity getBolgAndConvert(Long id);

    Map<String, List<BlogEntity>> archivesBlog();

    Long getBlogCount();


}
